package com.moyun.common.enums;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@Slf4j
@ApiIgnore
@RestController
@RequestMapping("hello")
public class HelloController {

    @ApiOperation(value = "测试自定义注解")
    @PostMapping(value = {"index"})
    public Student ceshi(Student student) {
        log.info("这个月的学生 student:[{}]", student);
        System.out.println("hahahah");
        return student;
    }

}